package com.tf.integrated.service.impl;


import com.tf.integrated.dao.EventresultpersonDao;
import com.tf.integrated.entity.EventresultpersonEntity;
import com.tf.integrated.service.EventresultpersonService;
import org.springframework.stereotype.Service;
import java.util.Map;
import java.util.List;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.ccssoft.m8.common.ccssoft.modules.util.EntityWrapperHandle;
import com.ccssoft.m8.common.ccssoft.modules.util.PageUtils;
import com.ccssoft.m8.common.ccssoft.modules.util.Query;


@Service("eventresultpersonService")
public class EventresultpersonServiceImpl extends ServiceImpl<EventresultpersonDao, EventresultpersonEntity> implements EventresultpersonService<EventresultpersonEntity>
{
    public PageUtils<EventresultpersonEntity> queryPage(Map<String, Object> params)
    {
        EntityWrapperHandle<EventresultpersonEntity> ew = new EntityWrapperHandle<EventresultpersonEntity>(params);
        Page<EventresultpersonEntity> page = this.selectPage(new Query<EventresultpersonEntity>(params).getPage(),ew);
        page.setTotal(this.selectCount(ew));
        return new PageUtils<EventresultpersonEntity>(page);
    }

    public List<EventresultpersonEntity> queryPageByLike(Map<String, Object> params)
    {
        return baseMapper.queryPageByLike(params);
    }
}
